Rounded Edges - Search
Open links in new tab
  1. 123

    Rounded edges can enhance the visual appeal of web elements by giving them a softer, more modern look. In CSS, the border-radius property is used to create rounded corners for elements.

    Using border-radius Property

    The border-radius property defines the radius of an element's corners. It can be applied to any element to give it rounded corners. Here are some examples:

    /* Rounded corners for an element with a specified background color */
    #rcorners1 {
    border-radius: 25px;
    background: #73AD21;
    padding: 20px;
    width: 200px;
    height: 150px;
    }

    /* Rounded corners for an element with a border */
    #rcorners2 {
    border-radius: 25px;
    border: 2px solid #73AD21;
    padding: 20px;
    width: 200px;
    height: 150px;
    }

    /* Rounded corners for an element with a background image */
    #rcorners3 {
    border-radius: 25px;
    background: url(paper.gif);
    background-position: left top;
    background-repeat: repeat;
    padding: 20px;
    width: 200px;
    height: 150px;
    }

    Specifying Each Corner

    The border-radius property can take one to four values, allowing you to specify different radii for each corner:

    • Four values: border-radius: 15px 50px 30px 5px; (top-left, top-right, bottom-right, bottom-left)

    • Three values: border-radius: 15px 50px 30px; (top-left, top-right & bottom-left, bottom-right)

    • Two values: border-radius: 15px 50px; (top-left & bottom-right, top-right & bottom-left)

    • One value: border-radius: 15px; (all corners)

    Continue reading
    Feedback
     
    Kizdar net | Kizdar net | Кыздар Нет
  1. Some results have been removed